]> dgit.raspbian.org Git - gnome-shell.git/commit
workspacesView: Disable workspace switching while in search
authorSebastian Keller <skeller@gnome.org>
Sun, 20 Feb 2022 15:53:43 +0000 (16:53 +0100)
committerSebastian Keller <skeller@gnome.org>
Sun, 20 Feb 2022 15:53:43 +0000 (16:53 +0100)
commit23047b6d80f06dbc099c1135eb8270cd5443d4e4
treebc1bd597a665ca776b23fbda351e0531cbd6c895
parent05b0b4c432f6b2509d7dc190f180afc3c0a611b5
workspacesView: Disable workspace switching while in search

WorkspacesDisplay connects to key-press-event on the stage to switch
workspaces when page up or down is pressed and nothing else intercepts
these keys. This means that it is still possible to switch workspaces
while they are hidden behind the search.

So only allow these keybinding while the WorkspacesDisplay is reactive
which gets updated by ControlsManager depending on whether there is an
active search or not. Also set it as initially reactive, because
otherwise the keybindings would only work after performing an initial
search.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2204>
js/ui/workspacesView.js